export default url => {
    const getList = (companyId) => window.$axios({
        url: `${url}s/${companyId}`,
        method: 'get',
    })
    
    const syncData = (companyId,params) => window.$axios({
        url: `${url}s/${companyId}`,
        method: 'post',
        params:params
    })
    
    return {
        getList,
        syncData
    }
}